package com.two.service.AliPay.feign;

import com.two.common.util.CommonResult;
import com.two.service.order.entity.Orders;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "two-orderSystem-service-order")
public interface OrdersFeign {

    @PostMapping("/order/updateState")
    public CommonResult updateState(@RequestParam String tradeNo,@RequestParam String status, @RequestParam String gmtPayment,@RequestParam  String alipayTradeNo);
    @GetMapping("/order/getByNo")
    Orders getByNo(@RequestParam String traceNo);
    @PostMapping("/order/updatePayState")
    public CommonResult updatePayState(@RequestParam String traceNo,@RequestParam  String status,@RequestParam  String now);
}
